export default {

    async getComponentsObj(data_) {
        return new Promise(async (resolve, reject) => {
            let _obj = (await data_.import).default;
            resolve(_obj)
        });
    },
    // 二维码
    async QRCode(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/QRCode/index") });
    },
    // 空数据盒子
    async DataEmptyBox(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/layout/DataEmptyBox/index") });
    },

    // 装修选项
    async DesignTabs(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/DesignTabs/index") });
    },
    // 装修 分享 选项
    async DesignOptionShare(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/DesignOptionShare/index") });
    },
    // 展示 分享公众小程序二维码
    async ShareQrcodeBox(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/ShareQrcodeBox/index") });
    },

    // 处理图片
    async ImageBox(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/ImageBox/index") });
    },

    // 应用列表盒子
    async AppListBox(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/AppListBox/index") });
    },

    // 拖拽缩放
    async DragResize(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/DragResize/index") });
    },
    // 拖拽排序
    async Draggable(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/Draggable/index") });
    },
    // 富文本
    async EditorTiptap(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/EditorTiptap/index") });
    },
    // 富文本解析
    async EditorHtmlParse(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/EditorHtmlParse/index") });
    },
    // 富文本 微信图文
    async EditorTiptapWxtuwen(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/EditorTiptapWxtuwen/index") });
    },


    // 选择系统支持的图标
    async SelectIcon(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/SelectIcon/index") });
    },
    // 图标状态
    async StateIcon(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/StateIcon/index") });
    },



    // 选择日期 周期适用
    async SelectDateCycleApplication(params) {
        return await this.getComponentsObj({ params, import: import("@/components/SelectDateCycleApplication/index/index") });
    },

    // 选择链接
    async SelectLink(params) {
        return await this.getComponentsObj({ params, import: import("@/components/SelectLink/index/index") });
    },
    // 选择地址
    async SelectAddress(params) {
        return await this.getComponentsObj({ params, import: import("@/components/SelectAddress/index/index") });
    },



    // 选择地图地址
    async SelectAddressMap(params) {
        return await this.getComponentsObj({ params, import: import("@/components/SelectAddressMap/index/index") });
    },


    /**==========================================服务资源========================================================== */



    // 商品选择
    async SelectDataGoods(params) {
        return await this.getComponentsObj({ params, import: import("@/components/SelectDataGoods/index/index") });
    },
    // 商品分组选择
    async SelectDataGoodsGroup(params) {
        return await this.getComponentsObj({ params, import: import("@/components/SelectDataGoodsGroup/index/index") });
    },
    // 商品分类选择
    async SelectDataGoodsClassify(params) {
        return await this.getComponentsObj({ params, import: import("@/components/SelectDataGoodsClassify/index/index") });
    },
    // 商品标签选择
    async SelectDataGoodsLabel(params) {
        return await this.getComponentsObj({ params, import: import("@/components/SelectDataGoodsLabel/index/index") });
    },
    // 商品拼团活动
    async SelectDataGroupBuying(params) {
        return await this.getComponentsObj({ params, import: import("@/components/SelectDataGroupBuying/index/index") });
    },
    // 商品幸运团活动
    async SelectDataLucklyBuying(params) {
        return await this.getComponentsObj({ params, import: import("@/components/SelectDataLucklyBuying/index/index") });
    },

    // 优惠券选择 
    async SelectDataCoupon(params) {
        return await this.getComponentsObj({ params, import: import("@/components/SelectDataCoupon/index/index") });
    },

    // 选择门店列表
    async SelectDataStore(params) {
        return await this.getComponentsObj({ params, import: import("@/components/SelectDataStore/index/index") });
    },

    // 选择门店商品
    async SelectDataStoreGoods(params) {
        return await this.getComponentsObj({ params, import: import("@/components/SelectDataStoreGoods/index/index") });
    },

    // 用户选择
    async SelectDataUsers(params) {
        return await this.getComponentsObj({ params, import: import("@/components/SelectDataUsers/index/index") });
    },

    // 滑动验证码
    async SlideVerify(params) {
        return await this.getComponentsObj({ params, import: import("@/components/SlideVerify/index/index") });
    },












    /**==========================================布局组件========================================================== */


    // 单元格
    async LayoutCell(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/layout/LayoutCell/index") });
    },
    // 单元格子项
    async LayoutCellItem(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/layout/LayoutCellItem/index") });
    },
    // 单元格详情
    async LayoutDetailGroup(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/layout/LayoutDetailGroup/index") });
    },
    // 单元格详情子项
    async LayoutDetailItem(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/layout/LayoutDetailItem/index") });
    },
    // 编辑框
    async LayoutEditFormBox(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/layout/LayoutEditFormBox/index") });
    },
    // 表格基础布局
    async LayoutTableSmall(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/layout/LayoutTableSmall/index") });
    },

    // 基础布局盒子
    async LayoutBaseBox(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/layout/LayoutBaseBox/index") });
    },

    // 菜单基础布局
    async LayoutWrapBoxAdmin(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/layout/LayoutWrapBoxAdmin/index") });
    },
    // 菜单基础布局
    async LayoutWrapBoxSite(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/layout/LayoutWrapBoxSite/index") });
    },
    // 菜单基础布局
    async LayoutWrapBoxStore(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/layout/LayoutWrapBoxStore/index") });
    },
    // 菜单基础布局
    async LayoutWrapBox(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/layout/LayoutWrapBox/index.vue") });
    },









    /**==========================================素材组件========================================================== */
    // 素材分组
    async MaterialGroup(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/source/MaterialGroup/index") });
    },
    // 图片列表多选
    async ImageListCheck(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/source/ImageListCheck/index") });
    },
    // 图片列表盒子
    async ImageListCheckFilterBox(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/source/ImageListCheckFilterBox/index") });
    },

    // 视频列表多选
    async VideoListCheck(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/source/VideoListCheck/index") });
    },
    // 视频列表盒子
    async VideoListCheckFilterBox(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/source/VideoListCheckFilterBox/index") });
    },
    // 音频列表多选
    async AudioListCheck(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/source/AudioListCheck/index") });
    },
    // 音频列表盒子
    async AudioListCheckFilterBox(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/source/AudioListCheckFilterBox/index") });
    },
    // 图文列表多选
    async TuwenListCheck(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/source/TuwenListCheck/index") });
    },
    // 图文列表盒子
    async TuwenListCheckFilterBox(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/source/TuwenListCheckFilterBox/index") });
    },

    // 选择图片素材 多选
    async SelectImageCheckbox(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/source/SelectImageCheckbox/index") });
    },
    // 选择图片素材 单选
    async SelectImageRadio(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/source/SelectImageRadio/index") });
    },
    // 选择视频素材 单选
    async SelectVideoRadio(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/source/SelectVideoRadio/index") });
    },

    // 选择音频素材
    async SelectAudio(params) {
        return await this.getComponentsObj({ params, import: import("@/components/base/source/SelectAudio/index") });
    },

}